package com.kgc.scd.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FootExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public FootExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFootIdIsNull() {
            addCriterion("foot_id is null");
            return (Criteria) this;
        }

        public Criteria andFootIdIsNotNull() {
            addCriterion("foot_id is not null");
            return (Criteria) this;
        }

        public Criteria andFootIdEqualTo(Integer value) {
            addCriterion("foot_id =", value, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdNotEqualTo(Integer value) {
            addCriterion("foot_id <>", value, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdGreaterThan(Integer value) {
            addCriterion("foot_id >", value, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("foot_id >=", value, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdLessThan(Integer value) {
            addCriterion("foot_id <", value, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdLessThanOrEqualTo(Integer value) {
            addCriterion("foot_id <=", value, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdIn(List<Integer> values) {
            addCriterion("foot_id in", values, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdNotIn(List<Integer> values) {
            addCriterion("foot_id not in", values, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdBetween(Integer value1, Integer value2) {
            addCriterion("foot_id between", value1, value2, "footId");
            return (Criteria) this;
        }

        public Criteria andFootIdNotBetween(Integer value1, Integer value2) {
            addCriterion("foot_id not between", value1, value2, "footId");
            return (Criteria) this;
        }

        public Criteria andFootUseridIsNull() {
            addCriterion("foot_userid is null");
            return (Criteria) this;
        }

        public Criteria andFootUseridIsNotNull() {
            addCriterion("foot_userid is not null");
            return (Criteria) this;
        }

        public Criteria andFootUseridEqualTo(String value) {
            addCriterion("foot_userid =", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridNotEqualTo(String value) {
            addCriterion("foot_userid <>", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridGreaterThan(String value) {
            addCriterion("foot_userid >", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridGreaterThanOrEqualTo(String value) {
            addCriterion("foot_userid >=", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridLessThan(String value) {
            addCriterion("foot_userid <", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridLessThanOrEqualTo(String value) {
            addCriterion("foot_userid <=", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridLike(String value) {
            addCriterion("foot_userid like", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridNotLike(String value) {
            addCriterion("foot_userid not like", value, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridIn(List<String> values) {
            addCriterion("foot_userid in", values, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridNotIn(List<String> values) {
            addCriterion("foot_userid not in", values, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridBetween(String value1, String value2) {
            addCriterion("foot_userid between", value1, value2, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootUseridNotBetween(String value1, String value2) {
            addCriterion("foot_userid not between", value1, value2, "footUserid");
            return (Criteria) this;
        }

        public Criteria andFootProidIsNull() {
            addCriterion("foot_proid is null");
            return (Criteria) this;
        }

        public Criteria andFootProidIsNotNull() {
            addCriterion("foot_proid is not null");
            return (Criteria) this;
        }

        public Criteria andFootProidEqualTo(Integer value) {
            addCriterion("foot_proid =", value, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidNotEqualTo(Integer value) {
            addCriterion("foot_proid <>", value, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidGreaterThan(Integer value) {
            addCriterion("foot_proid >", value, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidGreaterThanOrEqualTo(Integer value) {
            addCriterion("foot_proid >=", value, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidLessThan(Integer value) {
            addCriterion("foot_proid <", value, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidLessThanOrEqualTo(Integer value) {
            addCriterion("foot_proid <=", value, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidIn(List<Integer> values) {
            addCriterion("foot_proid in", values, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidNotIn(List<Integer> values) {
            addCriterion("foot_proid not in", values, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidBetween(Integer value1, Integer value2) {
            addCriterion("foot_proid between", value1, value2, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootProidNotBetween(Integer value1, Integer value2) {
            addCriterion("foot_proid not between", value1, value2, "footProid");
            return (Criteria) this;
        }

        public Criteria andFootTimeIsNull() {
            addCriterion("foot_time is null");
            return (Criteria) this;
        }

        public Criteria andFootTimeIsNotNull() {
            addCriterion("foot_time is not null");
            return (Criteria) this;
        }

        public Criteria andFootTimeEqualTo(Date value) {
            addCriterion("foot_time =", value, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeNotEqualTo(Date value) {
            addCriterion("foot_time <>", value, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeGreaterThan(Date value) {
            addCriterion("foot_time >", value, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("foot_time >=", value, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeLessThan(Date value) {
            addCriterion("foot_time <", value, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeLessThanOrEqualTo(Date value) {
            addCriterion("foot_time <=", value, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeIn(List<Date> values) {
            addCriterion("foot_time in", values, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeNotIn(List<Date> values) {
            addCriterion("foot_time not in", values, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeBetween(Date value1, Date value2) {
            addCriterion("foot_time between", value1, value2, "footTime");
            return (Criteria) this;
        }

        public Criteria andFootTimeNotBetween(Date value1, Date value2) {
            addCriterion("foot_time not between", value1, value2, "footTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}